<script type="text/javascript">
var content = null;
$(function () {
	if(CKEDITOR.instances['content']) 
		CKEDITOR.remove(CKEDITOR.instances['content']);
	var uploadParm = {
		height:'150px',
		filebrowserBrowseUrl:'${contextPath}browse-file.html',
		filebrowserImageBrowseUrl:'${contextPath}browse-image.html',
		filebrowserUploadUrl:'${contextPath}m/recruitinfo-upload.html?type=file',
		filebrowserImageUploadUrl:'${contextPath}m/recruitinfo-upload.html?type=image',
		language:'zh-cn'
	}
	content = CKEDITOR.replace('content', uploadParm);
});
</script>
<#import "/freemarker/datetime.ftl" as dt>
<div class="widget-header">
	<h3 class="title"><i class="fontello-icon-th-list-1"></i>编辑招聘信息</h3>
</div>
<form id="editRecruitInfoForm">
<table>
	<tr height="40">
		<td class="table-left" style="width:80px;">招聘职位</td>
		<td style="width:350px;"><input type="text"class="form-control" id="post" name="post" style="width:300px;" value="${(ri.post)!''}" />
			<input type="hidden" name="oc" value="${(cu_organCode)!''}"/>
			<input type="hidden" id="code" name="code" value="${(ri.code)!''}" />
		</td>
		<td class="table-left">学历</td>
		<td>
			<input class="form-control" type="text" id="eb" name="eb" style="width:300px;" value="${(ri.eb)!''}" />
		</td>
	</tr>
	<tr height="40">
		<td style="width:80px;" class="table-left">专业</td>
		<td><input class="form-control" type="text" id="major" name="major" style="width:300px;" value="${(ri.major)!''}" /></td>
		<td style="width:80px;" class="table-left">性别</td>
		<td>
			<select name="sex" id="sex" style="width:310px;">
				<option value="0" <#if ri??&&(ri.sex=="0")>selected="selected"</#if>>不限</option>
				<option value="1" <#if ri??&&(ri.sex=="1")>selected="selected"</#if>>男</option>
				<option value="2" <#if ri??&&(ri.sex=="2")>selected="selected"</#if>>女</option>
			</select>
			
		</td>
	</tr>
	<tr height="40">
		<td class="table-left">招聘人数</td>
		<td><input class="form-control" type="text" id="num" name="num" style="width:300px;" value="${(ri.num)!''}" /></td>
		<td class="table-left">联系电话</td>
		<td><input class="form-control" type="text" id="phone" name="phone" style="width:300px;" value="${(ri.phone)!''}" /></td>
	</tr>
	<tr height="40">
		<td class="table-left">薪资</td>
		<td><input type="text" id="wage" name="wage" style="width:300px;" value="${(ri.wage)!''}" /></td>
		<td class="table-left">起止时间</td>
		<td>
			<#if ri??>
				<@dt.dateTime name="startTime" value=ri.startTime width="150px"/>至
				<@dt.dateTime name="stopTime" value=ri.stopTime  width="150px"/>
			<#else>
				<@dt.dateTime name="startTime"  width="130px"/>至
				<@dt.dateTime name="stopTime"  width="130px"/>
			</#if>	
		</td>
	</tr>
	<tr height="40">
		<td class="table-left">年龄</td>
		<td><input type="text" id="age" name="age" style="width:150px;" value="${(ri.age)!''}" /></td>
	</tr>
	<tr height="40">
		<td class="table-left">介绍</td>
		<td colspan="3"><textarea id="content" style="width:300px;">${(ri.content)!''}</textarea></td>
	</tr>
	<tr height="20"></tr>
	<tr>
		<td colspan="4" style="text-align: center; height:30px;">
			<a href="javascript:;" class="btn btn-info" onclick="javascript:checkedRecruitInfo();"><i class="fontello-icon-mail-4">
			</i>&nbsp;保&nbsp;&nbsp;存</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:;" class="btn btn-info" onclick="javascript:sys_load_handle('recruitinfo');">
			<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消</a>
		</td>
	</tr>
</table>	
</form>
